﻿@model Sistema_de_Gestión_de_Correspondencia.Models.ChangePasswordModel

@{
    ViewBag.Title = "SGC - Cambiar Clave";
}

<div style="width:100%; float:left">
    <h3 style="float:left">Cambiar Clave</h3>
    <div style="float:right">
    @Html.ActionLink("Inicio", "Index", "Home")
    @Html.ActionLink("Volver", "Admin", "Mail")</div>
</div>
<hr />

<p>
    Las nuevas claves deben tener al menos @Membership.MinRequiredPasswordLength caracteres.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>Información de la Cuenta</legend>

            <div class="editor-label">
                Clave anterior
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                Nueva Clave
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                Confirmación
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="Cambiar Clave" />
            </p>
        </fieldset>
    </div>
}
